﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RegisterUserSp.aspx.cs"
    Inherits="WebPubManager_RegisterUserSp" %>

<html>
<head runat="server">
    <title>注册用户审核</title>
    <link href="../css/page.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript">
    function SubmitClient(paramId, paramResult) {
        if (confirm('确定执行此操作?')) {
            var url = "RegisterUserSp.aspx?sid=" + paramId + "&resultFlag=" + paramResult;
            this.location = url;
        }
    }

    function keyEvent() {
        if (event.keyCode == 13) {
            //tab健转换焦点
            event.keyCode = 9;
            event.returnValue = false;
            query();
        }
    }
    //查询用户详细 addby zhongjian 20091204
    function UserMessage(id) {
        var url = "UserMassage.aspx?id=" + id;
        window.open(url, "view", "top=20,left=20,toolbar=no,menubar=no,scrollbars=yes,location=no,status=no,width=500,height=550;");
    }

</script>
<body>
    <form id="form1" runat="server">
        <br>
        <table border="0">
            <tr>
                <td id="td1">
                    <asp:RadioButtonList runat="server" ID="rblSp" RepeatDirection="Horizontal">
                        <asp:ListItem Value="0">未审批</asp:ListItem>
                        <asp:ListItem Value="1">已审批</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td style="width: 200px; text-align: right;">中文用户名查询：
                </td>
                <td style="text-align: center;">
                    <asp:TextBox runat="server" ID="txtSeach" onkeydown="keyEvent()" />

                </td>
                <td>
                    <asp:Button runat="server" CssClass="NewButton" Text="查询" ID="btnQuery" OnClick="btnQuery_Click" />
                </td>
            </tr>
        </table>
        <controlDefine:CustomGridView ID="gvData" runat="server" AllowPaging="True" Width="100%"
            SkinID="List" HideTextLength="30" AutoGenerateColumns="False" ShowCmpAndCancel="False"
            AllowOnMouseOverEvent="False" ShowItemNumber="True" AutoGenerateDeleteConfirm="false"
            ShowHideColModel="None" OnRowCreated="gvData_RowCreated" OnOnLoadData="gvData_OnLoadData">
            <PagerSettings Visible="False" />
            <Columns>
                <asp:TemplateField HeaderText="用户id">
                    <ItemTemplate>
                        <asp:HyperLink ID="hyuser" runat="server" Text="查看"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>

                <asp:BoundField HeaderText="用户名称" DataField="USERNAME" />
                <asp:BoundField HeaderText="手机号" DataField="mobile" />
                <asp:BoundField HeaderText="所属企业名称" DataField="unitname" />
                <asp:BoundField HeaderText="注册时间" DataField="txtcreatedate" />
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:HyperLink ID="hySptg" runat="server" Text="通过"></asp:HyperLink>&nbsp;&nbsp;
                                    <asp:HyperLink ID="hyDel" runat="server" Text="删除"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </controlDefine:CustomGridView>

    </form>
</body>
</html>
